function loadXML(xmlFile)
{
		var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
		xmlDoc.async = "false";
		xmlDoc.onreadystatechange = verify;
		xmlDoc.load(xmlFile);
		var xmlObj = xmlDoc.documentElement;
		var returnArr = new Array();
		
		if(xmlObj.hasChildNodes())
		{
			for(i = 0; i < xmlObj.childNodes.length; i++)
			{
				xmlNode = xmlObj.childNodes(i);
				returnArr.push(parseControl(xmlNode));
			}
		}
		
		return returnArr;
}

function verify()
{
	if(xmlDoc.readyState != 4)
	{
		return false;
		}
}	

function parseControl(xmlNode)
{
	control = {};

	control.ID          = xmlNode.childNodes(0).firstChild.text;
	control.Constructor = xmlNode.childNodes(1).firstChild.text;
	control.Name        = xmlNode.childNodes(2).firstChild.text;
	control.JSPath      = xmlNode.childNodes(3).firstChild.text;
	control.IconPath    = xmlNode.childNodes(4).firstChild.text;

	return control;
}
